package io.file;

import static framework.Testable.INPUT_FILE;
import static framework.Testable.OUTPUT_FILE;

import java.util.logging.Level;
import java.util.logging.Logger;

public class Test {

    public static void main(String[] args) {
        try {
            
            FileSigner fs = new FileSigner();
            
            fs.generateKeys(1024, "RSA");
            fs.saveKeys("public.txt", "private.txt");
            fs.readKeys("public.txt", "private.txt");
            fs.sign(INPUT_FILE, OUTPUT_FILE);
            System.out.println(fs.verify(INPUT_FILE, OUTPUT_FILE));
            
        } catch (Exception ex) {
           System.out.println(ex.getMessage());
        }
    }
}
